package com.hc.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 字典类别
 *
 * @author 梁云亮
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class DictTypeVO implements Serializable {
    private static final long serialVersionUID = -6312434067167251901L;

    /**
     * 名称
     */
    @TableField(value = "name")
    @ApiModelProperty(value = "名称")
    private String name;

    /**
     * 状态：1-显示 2-不显示
     */
    @ApiModelProperty(value = "状态：1-显示 2-不显示")
    private Integer status;

    /**
     * 父类型编号
     */
    @TableField(value = "parent_id")
    @ApiModelProperty(value = "父类型编号")
    private Integer parentId;

    public DictTypeVO(String name, Integer parentId) {
        this.name = name;
        this.parentId = parentId;
    }
}
